<?php
    print_r($this->do_topsis);
?>
<table class="table table-bordered" id="example">
    <thead>
        <tr>
            <th>nrp</th>
            <th>index</th>
        </tr>
    </thead>
    <tbody>
        <?php
       
        foreach ($this->do_topsis as $key => $value) {
            echo '<tr>';
            echo '<td>' . $value['nrp'] . '</td>';
            echo '<td>' . $value['final'] . '</td>';
            echo '</tr>';
        }
        ?>
    </tbody>
</table>